var homeApp = angular.module('homeApp', ['base']);
homeApp.controller('homeCtrl', ['$rootScope', '$scope', 'homeService', function ($rootScope, $scope, homeService) {
    //
    $scope.roleList = [];
    $scope.roleId = '';

    $scope.getRoles = function () {
        homeService.getMyRoles().then(function (response) {
            $scope.roleId = response.roleId;
            $scope.roleList = response.roleList;
        });
    };
    $scope.getRoles();
}]);